package com.payment.enums;

public enum PaymentStatus {
    // 支付状态 0:未支付 1:支付中 2:支付成功 3:支付失败 4:申请退款
    UNPAID((byte) 0, "未支付"),
    PAYING((byte) 1, "支付中"),
    SUCCESS((byte) 2, "支付成功"),
    FAIL((byte) 3, "支付失败"),
    APPLYING((byte) 4, "申请退款");
    private final byte code;
    private final   String message;
    PaymentStatus(byte code, String message) {
        this.code = code;
        this.message = message;
    }
    public byte getCode() {
        return code;
    }
}
